package com.jhx.video.comment

import android.app.Activity
import com.jhx.common.framework.BasePresenter
import com.jhx.common.framework.BaseView
import com.jhx.video.model.CommentDetail

/**
 * 首页所有评论
 *
 * @author Jack 2018-03-27 20:13
 */
class Contract {

    interface AllCommentView : BaseView {
        fun getCommentSuccess(data: List<CommentDetail>?)
        fun getContext(): Activity
        /**
         * 回复评论成功
         */
        fun replyCommentSuccess()
        fun requestError()
    }

    abstract class AllCommentPresenter : BasePresenter<AllCommentView>() {
        abstract fun getComment(commentType: Int, pageIndex: Int, pageSize: Int)
        abstract fun replyComment(id: String, text: String)
    }
}